package org.test.cxf.ws.imp;

import org.test.cxf.domain.Cat;
import org.test.cxf.domain.User;
import org.test.cxf.ws.HelloWorld;
import org.test.cxf.ws.UserService;

import javax.jws.WebService;
import java.util.Date;
import java.util.List;

@WebService
public class HelloWorldWs implements HelloWorld {
    @Override
    public String sayHi(String name) {
        return name + "你好"+ new Date();
    }

    @Override
    public List<Cat> getCatByUser(User user) {
        UserService userService = new UserServiceImpl();
        return userService.getCatByUser(user);
    }
}
